<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<html>
<head>
<title>查看用户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<SCRIPT language=JavaScript src="/js/FoshanRen.js"></SCRIPT>
<SCRIPT language=JavaScript src="/js/xmlhttp.js"></SCRIPT>
<script language="JavaScript">
function Formfield(name, label){
	this.name=name;
	this.label=label;
}
function checkfm(form){
	var list  = new Array(new Formfield("loginName", "外部用户登录名"),new Formfield("email", "邮箱")
	,new Formfield("userName", "外部用户名"),new Formfield("mobile", "联系电话"));
	for(var i=0;i<list.length;i++){
		var objfield = eval("form."+ list[i].name);
		if(trim(objfield.value)==""){
			alert(list[i].label+ "不能为空");
			if(objfield.type!="hidden" && objfield.focus()) objfield.focus();
			return false;
		}
	}
	
	
	var picture = form.picture.value;
	if(trim(picture)!=""){
		var ext = picture.substring(picture.length-3).toLowerCase();
		if (ext!="jpg" && ext!="gif" && ext!="bmp" && ext!="png"){
			alert("只允许上传gif、jpg、bmp、png！");
			return false; 
		}
	}
	return true;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<html:form action="/cms/privilege/users/manage" method="post" enctype="multipart/form-data" onsubmit="return checkfm(this)">
<input type="hidden" name="method" value="editUsers">
<html:hidden property="userId"/>
  <table width="100%" border="0" cellspacing="2" cellpadding="3" align="center">
    <tr bgcolor="#ffbe26"><td colspan="2"  > <strong><font color="#000000">修改员工信息：</font></strong></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="22%" > <div align="right">外部用户姓名：</div></td>
      <td width="78%"> <html:text property="loginName" size="10" maxlength="10" disabled="true"/>
        <font color="#FF0000">*</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="22%" > <div align="right">性别：</div></td>
      <td width="78%"> <html:radio property="sex" value="MAN" disabled="true">男</html:radio>
      <html:radio property="sex" value="WOMEN" disabled="true">女</html:radio></td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td width="22%" > <div align="right">外部用户登录名：</div></td>
      <td width="78%"> <html:text property="loginName" size="20" maxlength="18" disabled="true"/>
        <font color="#FF0000">*</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="22%" > <div align="right">联系电话：</div></td>
      <td width="78%"> <html:text property="mobile" size="20" maxlength="18" disabled="true"/>
        <font color="#FF0000">*</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="22%" > <div align="right">电子邮件：</div></td>
      <td width="78%"> <html:text property="email" size="20" maxlength="18" disabled="true"/>
      <font color="#FF0000">*</font></td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td colspan="2"> <div align="center"> 
          <input type="submit" name="SYS_SET" value=" 确 定 " class="frm_btn" disabled="disabled"/>
        </div></td>
    </tr>
  </table>
</html:form>
<br>
</body>
</html>